<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/jquery-2.1.0.js"></script>
<script>
/*	$(function () {
			$.post("${pageContext.request.contextPath}/news",function (data) {
				alert("haha");
				for(var i=0;i<data.length;i++){
					var $li = $("<li><a href='${pageContext.request.contextPath}/news?param=read&id="+data[i].id+"'>"+data[i].title+"</a></li>");
					var $ul=$(".newsList>ul");
					$ul.append($li);
				}
			},"json");
	})*/
</script>

<style type="text/css">
.news-list ul li {
	
}
</style>
<div class="newsList">
	<h2>新闻动态</h2>
	<ul>
		<c:forEach items="${tit}" var="tit">
			<li>
				<a href="${pageContext.request.contextPath}/news?param=read&id=${tit.id}" id="newsId">${tit.title}</a>
			</li>
		</c:forEach>
	</ul>
</div>
